package com.ofood.data.dao;

import com.ofood.domain.Food;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IFoodDao {
    /**
     *
     * @param foodId food id
     * @return food
     */
    Food getFoodById(Long foodId);

    /**
     *
     * @param food
     * @return insert result
     */
    Integer insertFood(Food food);

    /**
     *
     * @param foodId
     * @return delete result
     */
    Integer deleteFood(Long foodId);

    /**
     *
     * @param food
     * @return update result
     */
    Integer updateFood(Food food);

    /**
     * get all food
     * @return
     */
    List<Food> getAllFood();
}
